<%-- 
    Document   : user
    Created on : 25.10.2010, 1:26:31
    Author     : Azimus
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://www.springframework.org/tags/form"
           prefix="form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <title>Registration Page</title>
        <c:import url="/WEB-INF/formating/link.jsp"/>
    </head>
    <body>
        <c:import url="/WEB-INF/formating/menu.jsp"/>
        <div id="conteiner">
            <c:import url="/WEB-INF/formating/sideMenu.jsp"/>
            <div id="main">
        <form:form modelAttribute="user" action="user" method="post">
            <fieldset>
                <legend>Add User</legend>
                <form:label for="name" path="name" cssErrorClass="error">User name :</form:label>
                <form:input path="name" /><form:errors path="name" /><br/>
                <form:label for="surname" path="surname" cssErrorClass="error">User surname :</form:label>
                <form:input path="surname" /><form:errors path="surname" /><br/>
                <form:label for="email" path="email" cssErrorClass="error">User email :</form:label>
                <form:input path="email" /><form:errors path="email" /><br/>
                <p>Address:</p>
                <form:label for="street" path="street" cssErrorClass="error">Street :</form:label>
                <form:input path="street" /><form:errors path="street" /><br/>
                <form:label for="streetNo" path="streetNo" cssErrorClass="error">Street no. :</form:label>
                <form:input path="streetNo" /><form:errors path="streetNo" /><br/>
                <form:label for="city" path="city" cssErrorClass="error">City :</form:label>
                <form:input path="city" /><form:errors path="city" /><br/>
                <form:label for="zip" path="zip" cssErrorClass="error">Zip :</form:label>
                <form:input path="zip" /><form:errors path="zip" /><br/>
                <form:label for="username" path="username" cssErrorClass="error">Username :</form:label>
                <form:input path="username" /><form:errors path="username" /><br/>
                <form:label for="pass" path="pass" cssErrorClass="error">Password :</form:label>
                <form:password path="pass" /><form:errors path="pass" /><br/>



                <fieldset class="radio">
                    <legend>Account type ?</legend>
                    <label><form:radiobutton path="roles" value="admin" />admin</label>
                    <label><form:radiobutton path="roles" value="supplier" />supplier</label>
                    <label><form:radiobutton path="roles" value="customer" />customer</label>
                    <label><form:radiobutton path="roles" value="employee" />employee</label>
                </fieldset>



                <tr>
                    <td colspan="2"><input type="submit"/></td>
                </tr>

            </fieldset>
        </form:form>
            </div>
        </div>
        <c:import url="/WEB-INF/formating/foot.jsp"/>
</body>
</html>